import 'package:flutter/material.dart';
import 'featurred_plant_card.dart';

class FeaturedPlants extends StatelessWidget {
  const FeaturedPlants({Key key, this.imgList}) : super(key: key);
  final List<String> imgList;
  @override
  Widget build(BuildContext context) {
    return SingleChildScrollView(
      scrollDirection: Axis.horizontal,
      physics: BouncingScrollPhysics(),
      child: Row(
        children: imgList
            .map((v) => FeaturePlantCard(
                  image: v,
                  press: () {},
                ))
            .toList(),
      ),
    );
  }
}
